Public Class frmCompanyAdd
    Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents Label5 As System.Windows.Forms.Label
    Friend WithEvents tbName As System.Windows.Forms.TextBox
    Friend WithEvents tbPoPrefix As System.Windows.Forms.TextBox
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents tbPoNumber As System.Windows.Forms.TextBox
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents tbGrvNumber As System.Windows.Forms.TextBox
    Friend WithEvents tbGrvPrefix As System.Windows.Forms.TextBox
    Friend WithEvents Label4 As System.Windows.Forms.Label
    Friend WithEvents tbRtnNumber As System.Windows.Forms.TextBox
    Friend WithEvents tbRtnPrefix As System.Windows.Forms.TextBox
    Friend WithEvents Label6 As System.Windows.Forms.Label
    Friend WithEvents tbTrvNumber As System.Windows.Forms.TextBox
    Friend WithEvents tbTrfrPrefix As System.Windows.Forms.TextBox
    Friend WithEvents Label7 As System.Windows.Forms.Label
    Friend WithEvents tbAdjNumber As System.Windows.Forms.TextBox
    Friend WithEvents tbAdjPrefix As System.Windows.Forms.TextBox
    Friend WithEvents cmdSave As DevComponents.DotNetBar.ButtonX
    Friend WithEvents cmdExit As DevComponents.DotNetBar.ButtonX
    Friend WithEvents GroupPanel1 As DevComponents.DotNetBar.Controls.GroupPanel
    Friend WithEvents Label8 As System.Windows.Forms.Label
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.tbName = New System.Windows.Forms.TextBox()
        Me.Label5 = New System.Windows.Forms.Label()
        Me.tbPoPrefix = New System.Windows.Forms.TextBox()
        Me.Label1 = New System.Windows.Forms.Label()
        Me.tbPoNumber = New System.Windows.Forms.TextBox()
        Me.Label2 = New System.Windows.Forms.Label()
        Me.Label3 = New System.Windows.Forms.Label()
        Me.tbGrvNumber = New System.Windows.Forms.TextBox()
        Me.tbGrvPrefix = New System.Windows.Forms.TextBox()
        Me.Label4 = New System.Windows.Forms.Label()
        Me.tbRtnNumber = New System.Windows.Forms.TextBox()
        Me.tbRtnPrefix = New System.Windows.Forms.TextBox()
        Me.Label6 = New System.Windows.Forms.Label()
        Me.tbTrvNumber = New System.Windows.Forms.TextBox()
        Me.tbTrfrPrefix = New System.Windows.Forms.TextBox()
        Me.Label7 = New System.Windows.Forms.Label()
        Me.tbAdjNumber = New System.Windows.Forms.TextBox()
        Me.tbAdjPrefix = New System.Windows.Forms.TextBox()
        Me.Label8 = New System.Windows.Forms.Label()
        Me.cmdSave = New DevComponents.DotNetBar.ButtonX()
        Me.cmdExit = New DevComponents.DotNetBar.ButtonX()
        Me.GroupPanel1 = New DevComponents.DotNetBar.Controls.GroupPanel()
        Me.GroupPanel1.SuspendLayout()
        Me.SuspendLayout()
        '
        'tbName
        '
        Me.tbName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.tbName.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper
        Me.tbName.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.tbName.Location = New System.Drawing.Point(49, 56)
        Me.tbName.MaxLength = 25
        Me.tbName.Name = "tbName"
        Me.tbName.Size = New System.Drawing.Size(254, 26)
        Me.tbName.TabIndex = 24
        '
        'Label5
        '
        Me.Label5.AutoSize = True
        Me.Label5.BackColor = System.Drawing.Color.Transparent
        Me.Label5.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label5.ForeColor = System.Drawing.SystemColors.Desktop
        Me.Label5.Location = New System.Drawing.Point(45, 13)
        Me.Label5.Name = "Label5"
        Me.Label5.Size = New System.Drawing.Size(106, 18)
        Me.Label5.TabIndex = 22
        Me.Label5.Text = "Company Name"
        '
        'tbPoPrefix
        '
        Me.tbPoPrefix.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.tbPoPrefix.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper
        Me.tbPoPrefix.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.tbPoPrefix.Location = New System.Drawing.Point(160, 119)
        Me.tbPoPrefix.MaxLength = 1
        Me.tbPoPrefix.Name = "tbPoPrefix"
        Me.tbPoPrefix.Size = New System.Drawing.Size(53, 26)
        Me.tbPoPrefix.TabIndex = 42
        '
        'Label1
        '
        Me.Label1.AutoSize = True
        Me.Label1.BackColor = System.Drawing.Color.Transparent
        Me.Label1.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label1.ForeColor = System.Drawing.SystemColors.Desktop
        Me.Label1.Location = New System.Drawing.Point(43, 100)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(103, 18)
        Me.Label1.TabIndex = 41
        Me.Label1.Text = "Purchase Order"
        '
        'tbPoNumber
        '
        Me.tbPoNumber.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.tbPoNumber.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper
        Me.tbPoNumber.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.tbPoNumber.Location = New System.Drawing.Point(225, 119)
        Me.tbPoNumber.MaxLength = 5
        Me.tbPoNumber.Name = "tbPoNumber"
        Me.tbPoNumber.Size = New System.Drawing.Size(78, 26)
        Me.tbPoNumber.TabIndex = 43
        Me.tbPoNumber.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        'Label2
        '
        Me.Label2.AutoSize = True
        Me.Label2.BackColor = System.Drawing.Color.Transparent
        Me.Label2.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label2.ForeColor = System.Drawing.SystemColors.Desktop
        Me.Label2.Location = New System.Drawing.Point(154, 73)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(44, 18)
        Me.Label2.TabIndex = 44
        Me.Label2.Text = "Prefix"
        '
        'Label3
        '
        Me.Label3.AutoSize = True
        Me.Label3.BackColor = System.Drawing.Color.Transparent
        Me.Label3.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label3.ForeColor = System.Drawing.SystemColors.Desktop
        Me.Label3.Location = New System.Drawing.Point(218, 74)
        Me.Label3.Name = "Label3"
        Me.Label3.Size = New System.Drawing.Size(92, 18)
        Me.Label3.TabIndex = 45
        Me.Label3.Text = "Next Number"
        '
        'tbGrvNumber
        '
        Me.tbGrvNumber.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.tbGrvNumber.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper
        Me.tbGrvNumber.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.tbGrvNumber.Location = New System.Drawing.Point(225, 146)
        Me.tbGrvNumber.MaxLength = 5
        Me.tbGrvNumber.Name = "tbGrvNumber"
        Me.tbGrvNumber.Size = New System.Drawing.Size(78, 26)
        Me.tbGrvNumber.TabIndex = 48
        Me.tbGrvNumber.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        'tbGrvPrefix
        '
        Me.tbGrvPrefix.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.tbGrvPrefix.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper
        Me.tbGrvPrefix.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.tbGrvPrefix.Location = New System.Drawing.Point(161, 146)
        Me.tbGrvPrefix.MaxLength = 1
        Me.tbGrvPrefix.Name = "tbGrvPrefix"
        Me.tbGrvPrefix.Size = New System.Drawing.Size(52, 26)
        Me.tbGrvPrefix.TabIndex = 47
        '
        'Label4
        '
        Me.Label4.AutoSize = True
        Me.Label4.BackColor = System.Drawing.Color.Transparent
        Me.Label4.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label4.ForeColor = System.Drawing.SystemColors.Desktop
        Me.Label4.Location = New System.Drawing.Point(43, 127)
        Me.Label4.Name = "Label4"
        Me.Label4.Size = New System.Drawing.Size(34, 18)
        Me.Label4.TabIndex = 46
        Me.Label4.Text = "GRV"
        '
        'tbRtnNumber
        '
        Me.tbRtnNumber.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.tbRtnNumber.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper
        Me.tbRtnNumber.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.tbRtnNumber.Location = New System.Drawing.Point(225, 176)
        Me.tbRtnNumber.MaxLength = 5
        Me.tbRtnNumber.Name = "tbRtnNumber"
        Me.tbRtnNumber.Size = New System.Drawing.Size(78, 26)
        Me.tbRtnNumber.TabIndex = 51
        Me.tbRtnNumber.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        'tbRtnPrefix
        '
        Me.tbRtnPrefix.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.tbRtnPrefix.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper
        Me.tbRtnPrefix.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.tbRtnPrefix.Location = New System.Drawing.Point(161, 176)
        Me.tbRtnPrefix.MaxLength = 1
        Me.tbRtnPrefix.Name = "tbRtnPrefix"
        Me.tbRtnPrefix.Size = New System.Drawing.Size(52, 26)
        Me.tbRtnPrefix.TabIndex = 50
        '
        'Label6
        '
        Me.Label6.AutoSize = True
        Me.Label6.BackColor = System.Drawing.Color.Transparent
        Me.Label6.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label6.ForeColor = System.Drawing.SystemColors.Desktop
        Me.Label6.Location = New System.Drawing.Point(43, 157)
        Me.Label6.Name = "Label6"
        Me.Label6.Size = New System.Drawing.Size(109, 18)
        Me.Label6.TabIndex = 49
        Me.Label6.Text = "Purchase Return"
        '
        'tbTrvNumber
        '
        Me.tbTrvNumber.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.tbTrvNumber.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper
        Me.tbTrvNumber.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.tbTrvNumber.Location = New System.Drawing.Point(225, 204)
        Me.tbTrvNumber.MaxLength = 5
        Me.tbTrvNumber.Name = "tbTrvNumber"
        Me.tbTrvNumber.Size = New System.Drawing.Size(78, 26)
        Me.tbTrvNumber.TabIndex = 54
        Me.tbTrvNumber.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        'tbTrfrPrefix
        '
        Me.tbTrfrPrefix.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.tbTrfrPrefix.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper
        Me.tbTrfrPrefix.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.tbTrfrPrefix.Location = New System.Drawing.Point(161, 204)
        Me.tbTrfrPrefix.MaxLength = 1
        Me.tbTrfrPrefix.Name = "tbTrfrPrefix"
        Me.tbTrfrPrefix.Size = New System.Drawing.Size(52, 26)
        Me.tbTrfrPrefix.TabIndex = 53
        '
        'Label7
        '
        Me.Label7.AutoSize = True
        Me.Label7.BackColor = System.Drawing.Color.Transparent
        Me.Label7.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label7.ForeColor = System.Drawing.SystemColors.Desktop
        Me.Label7.Location = New System.Drawing.Point(43, 185)
        Me.Label7.Name = "Label7"
        Me.Label7.Size = New System.Drawing.Size(112, 18)
        Me.Label7.TabIndex = 52
        Me.Label7.Text = "Transfer Voucher"
        '
        'tbAdjNumber
        '
        Me.tbAdjNumber.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.tbAdjNumber.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper
        Me.tbAdjNumber.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.tbAdjNumber.Location = New System.Drawing.Point(225, 233)
        Me.tbAdjNumber.MaxLength = 5
        Me.tbAdjNumber.Name = "tbAdjNumber"
        Me.tbAdjNumber.Size = New System.Drawing.Size(78, 26)
        Me.tbAdjNumber.TabIndex = 57
        Me.tbAdjNumber.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        'tbAdjPrefix
        '
        Me.tbAdjPrefix.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.tbAdjPrefix.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper
        Me.tbAdjPrefix.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.tbAdjPrefix.Location = New System.Drawing.Point(161, 233)
        Me.tbAdjPrefix.MaxLength = 1
        Me.tbAdjPrefix.Name = "tbAdjPrefix"
        Me.tbAdjPrefix.Size = New System.Drawing.Size(52, 26)
        Me.tbAdjPrefix.TabIndex = 56
        '
        'Label8
        '
        Me.Label8.AutoSize = True
        Me.Label8.BackColor = System.Drawing.Color.Transparent
        Me.Label8.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label8.ForeColor = System.Drawing.SystemColors.Desktop
        Me.Label8.Location = New System.Drawing.Point(43, 214)
        Me.Label8.Name = "Label8"
        Me.Label8.Size = New System.Drawing.Size(106, 18)
        Me.Label8.TabIndex = 55
        Me.Label8.Text = "Adjust. Voucher"
        '
        'cmdSave
        '
        Me.cmdSave.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton
        Me.cmdSave.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.cmdSave.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(64, Byte), Integer))
        Me.cmdSave.Location = New System.Drawing.Point(144, 283)
        Me.cmdSave.Name = "cmdSave"
        Me.cmdSave.Size = New System.Drawing.Size(82, 27)
        Me.cmdSave.TabIndex = 269
        Me.cmdSave.Text = "Save"
        '
        'cmdExit
        '
        Me.cmdExit.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton
        Me.cmdExit.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.cmdExit.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(64, Byte), Integer))
        Me.cmdExit.Location = New System.Drawing.Point(231, 283)
        Me.cmdExit.Name = "cmdExit"
        Me.cmdExit.Size = New System.Drawing.Size(82, 27)
        Me.cmdExit.TabIndex = 268
        Me.cmdExit.Text = "Exit"
        '
        'GroupPanel1
        '
        Me.GroupPanel1.CanvasColor = System.Drawing.SystemColors.Control
        Me.GroupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007
        Me.GroupPanel1.Controls.Add(Me.Label3)
        Me.GroupPanel1.Controls.Add(Me.Label5)
        Me.GroupPanel1.Controls.Add(Me.Label1)
        Me.GroupPanel1.Controls.Add(Me.Label4)
        Me.GroupPanel1.Controls.Add(Me.Label6)
        Me.GroupPanel1.Controls.Add(Me.Label7)
        Me.GroupPanel1.Controls.Add(Me.Label2)
        Me.GroupPanel1.Controls.Add(Me.Label8)
        Me.GroupPanel1.Dock = System.Windows.Forms.DockStyle.Fill
        Me.GroupPanel1.Location = New System.Drawing.Point(0, 0)
        Me.GroupPanel1.Name = "GroupPanel1"
        Me.GroupPanel1.Size = New System.Drawing.Size(367, 346)
        '
        '
        '
        Me.GroupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2
        Me.GroupPanel1.Style.BackColorGradientAngle = 90
        Me.GroupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground
        Me.GroupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid
        Me.GroupPanel1.Style.BorderBottomWidth = 1
        Me.GroupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder
        Me.GroupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid
        Me.GroupPanel1.Style.BorderLeftWidth = 1
        Me.GroupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid
        Me.GroupPanel1.Style.BorderRightWidth = 1
        Me.GroupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid
        Me.GroupPanel1.Style.BorderTopWidth = 1
        Me.GroupPanel1.Style.CornerDiameter = 4
        Me.GroupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded
        Me.GroupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center
        Me.GroupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText
        Me.GroupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near
        Me.GroupPanel1.TabIndex = 270
        Me.GroupPanel1.Text = "Company Add"
        '
        'frmCompanyAdd
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(7, 19)
        Me.BackColor = System.Drawing.SystemColors.ActiveCaption
        Me.ClientSize = New System.Drawing.Size(367, 346)
        Me.ControlBox = False
        Me.Controls.Add(Me.cmdSave)
        Me.Controls.Add(Me.cmdExit)
        Me.Controls.Add(Me.tbAdjPrefix)
        Me.Controls.Add(Me.tbTrfrPrefix)
        Me.Controls.Add(Me.tbRtnPrefix)
        Me.Controls.Add(Me.tbGrvPrefix)
        Me.Controls.Add(Me.tbPoPrefix)
        Me.Controls.Add(Me.tbAdjNumber)
        Me.Controls.Add(Me.tbTrvNumber)
        Me.Controls.Add(Me.tbRtnNumber)
        Me.Controls.Add(Me.tbGrvNumber)
        Me.Controls.Add(Me.tbPoNumber)
        Me.Controls.Add(Me.tbName)
        Me.Controls.Add(Me.GroupPanel1)
        Me.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.ForeColor = System.Drawing.SystemColors.ControlLightLight
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
        Me.MaximizeBox = False
        Me.MinimizeBox = False
        Me.Name = "frmCompanyAdd"
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
        Me.GroupPanel1.ResumeLayout(False)
        Me.GroupPanel1.PerformLayout()
        Me.ResumeLayout(False)
        Me.PerformLayout()

    End Sub

#End Region
    Private Sub cmdSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSave.Click
        If ValidateInputData() = True Then
            Dim ARdata As New ARdataLogic
            Try
                ARdata.InsertCompany(tbName.Text, tbPoPrefix.Text, tbGrvPrefix.Text, tbRtnPrefix.Text, tbTrfrPrefix.Text, tbAdjPrefix.Text, tbPoNumber.Text, tbGrvNumber.Text, tbRtnNumber.Text, tbTrvNumber.Text, tbAdjNumber.Text)
                MsgBox("Company:" & tbName.Text & " added.", MsgBoxStyle.Information, "Inventory Manager")
                tbName.Text = ""
            Catch Ex As Exception
                MsgBox("Unable to satisfy your request." & vbLf & "Try again later.", MsgBoxStyle.Critical, "Inventory Manager")
            Finally
                ARdata = Nothing
            End Try
        End If
    End Sub

    Private Sub cmdExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdExit.Click
        Me.Close()
    End Sub
    Private Function ValidateInputData() As Boolean
        If tbName.Text.Trim = "" Then
            MsgBox("Enter Company Name", MsgBoxStyle.Critical, "Inventory Manager")
            tbName.Focus()
            Return False
        End If
        If Not IsNumeric(tbPoNumber.Text) Then
            MsgBox("Purchase Order Number should be numeric", MsgBoxStyle.Information, "Inventory Manager")
            tbPoNumber.Focus()
            Return False
        End If
        If Not IsNumeric(tbGrvNumber.Text) Then
            MsgBox("GRV Number should be numeric", MsgBoxStyle.Information, "Inventory Manager")
            tbGrvNumber.Focus()
            Return False
        End If
        If Not IsNumeric(tbRtnNumber.Text) Then
            MsgBox("Purchase Return Number should be numeric", MsgBoxStyle.Information, "Inventory Manager")
            tbRtnNumber.Focus()
            Return False
        End If
        If Not IsNumeric(tbTrvNumber.Text) Then
            MsgBox("Transfer Voucher Number should be numeric", MsgBoxStyle.Information, "Inventory Manager")
            tbTrvNumber.Focus()
            Return False
        End If
        If Not IsNumeric(tbAdjNumber.Text) Then
            MsgBox("Adjustment Voucher Number should be numeric", MsgBoxStyle.Information, "Inventory Manager")
            tbAdjNumber.Focus()
            Return False
        End If
        Dim ARdata As New ARdataLogic
        Try
            If ARdata.CheckCompany(tbName.Text) > 0 Then
                MsgBox("Company Name:" & tbName.Text & " already exist", MsgBoxStyle.Critical, "Inventory Manager")
                tbName.Text = ""
                Return False
            End If
        Catch Ex As Exception
            MsgBox("Unable to satisfy your request." & vbLf & "Try again later.", MsgBoxStyle.Critical, "Inventory Manager")
        Finally
            ARdata = Nothing
        End Try
        Return True
    End Function

    Private Sub ARgroupsAdd_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyUp
        Select Case e.KeyValue
            Case 13
                SendKeys.Send("{Tab}")
            Case 27
                cmdExit.PerformClick()
        End Select

    End Sub
    Private Sub tbName_Validated(ByVal sender As Object, ByVal e As System.EventArgs) Handles tbName.Validated
        If tbName.Text.Trim.Length > 0 Then
            Dim prefix As String = tbName.Text.Substring(0, 1)
            tbPoPrefix.Text = prefix
            tbGrvPrefix.Text = prefix
            tbRtnPrefix.Text = prefix
            tbTrfrPrefix.Text = prefix
            tbAdjPrefix.Text = prefix
        End If
    End Sub
End Class
